From 541a47d53d16745d9dd652647175793a31e35e3b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 10 Feb 2010 09:07:48 +0000 Subject: [PATCH] xend: Enlarge the memory balloon size for domain creation since shadow pre-allocation size has changed from 1M to 4M. Signed-off-by: Dongxiao Xu --- tools/python/xen/xend/XendDomainInfo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 20de478d1a..577905d459 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2519,9 +2519,8 @@ class XendDomainInfo: # There is an implicit memory overhead for any domain creation. This # overhead is greater for some types of domain than others. For # example, an x86 HVM domain will have a default shadow-pagetable - # allocation of 1MB. We free up 4MB here to be on the safe side. - # 2MB memory allocation was not enough in some cases, so it's 4MB now - balloon.free(4*1024, self) # 4MB should be plenty + # allocation of 4MB. We free up 16MB here to be on the safe side. + balloon.free(16*1024, self) # 16MB should be plenty ssidref = 0 if security.on() == xsconstants.XS_POLICY_USE: -- 2.30.2